/*    */ package com.zimbra.cs.extension;
/*    */ 
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import java.lang.reflect.Method;
/*    */ import java.util.Set;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class VoiceExtensionUtil
/*    */ {
/*    */   public static void registerVoiceProvider(String extension, String providerName, String className, Set<String> applicableAttrs)
/*    */   {
/*    */     try
/*    */     {
/* 37 */       Class vsClass = ExtensionUtil.findClass("com.zimbra.cs.voice.VoiceStore");
/* 38 */       Method method = vsClass.getMethod("register", new Class[] { String.class, String.class, String.class, Set.class });
/*    */       
/* 40 */       method.invoke(vsClass, new Object[] { extension, providerName, className, applicableAttrs });
/*    */     } catch (Exception e) {
/* 42 */       ZimbraLog.extensions.error("unable to register VoiceStore: extension=" + extension + ", className=" + className, e);
/*    */     }
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/extension/VoiceExtensionUtil.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */